From 6431336a850eb96fd2200627b2ea26d5a110b1f6 Mon Sep 17 00:00:00 2001 From: Fredrik Larsson Date: Wed, 11 Oct 2017 21:34:44 +0200 Subject: [PATCH] Use multiple install command in the corresponding test --- tests/install.rs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/tests/install.rs b/tests/install.rs index b7935affd..c4c722bfb 100644 --- a/tests/install.rs +++ b/tests/install.rs @@ -82,16 +82,15 @@ error: some crates failed to install assert_that(cargo_home(), has_installed_exe("foo")); assert_that(cargo_home(), has_installed_exe("bar")); - assert_that(cargo_process("uninstall").arg("foo"), + assert_that(cargo_process("uninstall").args(&["foo", "bar"]), execs().with_status(0).with_stderr(&format!("\ [REMOVING] {home}[..]bin[..]foo[..] -", - home = cargo_home().display()))); - assert_that(cargo_process("uninstall").arg("bar"), - execs().with_status(0).with_stderr(&format!("\ [REMOVING] {home}[..]bin[..]bar[..] + +Summary: Successfully uninstalled foo, bar! ", home = cargo_home().display()))); + assert_that(cargo_home(), is_not(has_installed_exe("foo"))); assert_that(cargo_home(), is_not(has_installed_exe("bar"))); } -- 2.30.2